app.service("goodsService",function($http){

    this.save=function (entity) {

        return $http.post("/goods/save.do",entity);

    }

    this.findPage=function(page,rows,entity){

        return $http.post("/goods/findPage.do?page="+page+"&rows="+rows,entity);
    }

    this.findOne=function(id){

        return $http.get("/goods/findOne.do?id="+id);
    }



});